



fid=fopen('D:\474\code\matlab\Dhruv_leftindex.txt', 'rt');   %open the file

total= zeros(800,1);
for j=1:100
title = fgetl(fid);  %read in the header
data=fscanf(fid, '%i',[800]);   %read in daata
[m,n]=size(data);
for i=1:(800-m)
   data=[data;0];
end
total=[total,data];
end
fclose(fid);   %close the file


for k=2:100
total(1:800,k) = total(1:800,k)/sum(total(1:800, k));

end

new = total( 1:800, 2:70);